package com.qianhui.view;

import com.qianhui.pojo.Goods;

import java.io.Serializable;
import java.sql.Timestamp;


public class GoodsItem implements Serializable
{
    private Goods goods;
    private int number;
    private Timestamp cartAddTime;

    public GoodsItem()
    {
        super();
    }

    public GoodsItem(Goods goods, int number, Timestamp cartAddTime)
    {
        super();
        this.goods = goods;
        this.number = number;
        this.cartAddTime = cartAddTime;
    }

    public Goods getGoods()
    {
        return goods;
    }

    public void setGoods(Goods goods)
    {
        this.goods = goods;
    }

    public int getNumber()
    {
        return number;
    }

    public void setNumber(int number)
    {
        this.number = number;
    }

    public Timestamp getCartAddTime()
    {
        return cartAddTime;
    }

    public void setCartAddTime(Timestamp cartAddTime)
    {
        this.cartAddTime = cartAddTime;
    }

    @Override
    public String toString()
    {
        return "GoodsItem [goods=" + goods + ", number=" + number + ", cartAddTime=" + cartAddTime + "]";
    }

}
